﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="admin_search" MasterPageFile="~/admin/MasterPage2.master"%>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <table width="1100px" bgcolor="White" cellpadding="0" cellspacing="0">
    <!-- Encabezado -->
    
    
    <tr>
        <td bgcolor="#FA7E02" class="letracuadroscolores">
            <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </cc1:ToolkitScriptManager>
            Search Options</td>
    </tr>

    <!-- Cuerpo -->
    <!--tr>
        <td class="letracuadroscolores" bgcolor="#9AC9F8"  style="text-align:left">&nbsp;Single Search</td>
    </tr>
    <tr>
        <td bgcolor="#ffffff">
                        <asp:Panel ID="Panel2" runat="server">
                            
                            <table border="0" cellpadding="0" cellspacing="4" width="100%">
                                <tr>
                                    <td>Order #:&nbsp;&nbsp;&nbsp;</td>
                                    <td>
                                        <asp:TextBox ID="tb_order" runat="server" Height="13px" Width="164px"></asp:TextBox>
                                    </td>
                                    <td>Street #:</td>
                                    <td>
                                        <asp:TextBox ID="tb_stnum" runat="server" Height="13px" Width="174px"></asp:TextBox>
                                    </td>
                                    <td>Submitted:</td>
                                    <td>
                                        <asp:DropDownList ID="cb_ssubmitted" runat="server" Height="20px" Width="170px">
                                            <asp:ListItem>All</asp:ListItem>
                                            <asp:ListItem>No</asp:ListItem>
                                            <asp:ListItem>Yes</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right">
                                        <asp:LinkButton ID="lnk_searchsin" runat="server" CssClass="button2_ok" 
                                            ForeColor="White" onclick="lnk_searchsin_Click"><span>Search</span></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
        </td>
    </tr-->
    <% if ((RSearch & 8) != 8){%>
    <tr>
        <td class="letracuadroscolores" bgcolor="#9AC9F8" style="text-align:left">&nbsp;Multiple Search</td>
    </tr>
    <tr>
        <td bgcolor="#ffffff">
                        <asp:Panel ID="Panel3" runat="server" >
                            
                            <table border="0" cellpadding="0" cellspacing="4" width="100%">
                                <tr>
                                    <td valign="top">&nbsp;</td>
                                    <td align="left" width="590px">
                                        &nbsp;</td>
                                    <td valign="top">&nbsp;</td>
                                    <td valign="top">
                                        &nbsp;</td>
                                    <td align="right" valign="top">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        Order #:</td>
                                    <td align="left" width="590px">
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:TextBox ID="tb_orders" runat="server" Height="102px" TextMode="MultiLine" 
                                            Width="490px"></asp:TextBox>
                                            <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="tb_orders" 
                    ErrorMessage="Error, only order # separated with &quot;,&quot; without space" 
                    SetFocusOnError="True" 
                    ValidationExpression="((\d)*(-)*(_)*([a-z]|[A-Z])*(-)*(\d)*(,)*)+"></asp:RegularExpressionValidator>

                                    </td>
                                    
                                    <td valign="top">
                                        Submitted:</td>
                                    <td valign="top">
                                        <asp:DropDownList ID="cb_msubmitted" runat="server" Height="20px" Width="170px">
                                            <asp:ListItem Selected="True">All</asp:ListItem>
                                            <asp:ListItem>No</asp:ListItem>
                                            <asp:ListItem>Yes</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right" valign="top">
                                        <asp:LinkButton ID="lnk_searchmul" runat="server" CssClass="button2_ok" 
                                            ForeColor="White" onclick="lnk_searchmul_Click"><span>Search</span></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
        </td>
    </tr>
    <tr>
        <td class="letrabold"  style="text-align:left">&nbsp;</td>
    </tr>
    <%} %>

    <% if ((RSearch & 16) != 16){%>
    <tr>
        <td class="letracuadroscolores" bgcolor="#9AC9F8"  style="text-align:left">&nbsp;Filtered Search</td>
    </tr>
     <tr>
        <td bgcolor="#ffffff">
                        <asp:Panel ID="Psearch" runat="server">
                            <!--<table border="0" cellpadding="0" cellspacing="0">
                                <tr><td align="left" bgcolor="#FA7E02" class="letrabold" width="550px">Search</td></tr>
                            </table>-->
                            <table border="0" cellpadding="0" cellspacing="4" width="100%">
                                        <tr>
                                            <td>Client:</td>
                                            <td class="style7"><asp:DropDownList ID="cb_client" runat="server" Height="20px" Width="170px"></asp:DropDownList></td>
                                            <td>Company:</td>
                                            <td class="style4"><asp:DropDownList ID="cb_company" runat="server" Height="20px" Width="170px"></asp:DropDownList></td>
                                            <td align="left" class="letraNegra13">Account:</td>
                                            <td align="left" class="letraNegra13" height="18"><asp:DropDownList ID="cb_account" runat="server" Height="20px" Width="170px"></asp:DropDownList></td>
                                        </tr>
                                        <tr>
                                            <td>Sector:</td>
                                            <td class="style7">
                                                <asp:DropDownList ID="cb_sector" runat="server" Height="20px" Width="170px" 
                                                    AutoPostBack="True" onselectedindexchanged="cb_sector_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left" class="letraNegra13">County:</td>
                                            <td align="left" class="style2" height="18"><asp:DropDownList ID="cb_county" 
                                                    runat="server" Height="20px" Width="170px" Enabled="False"></asp:DropDownList></td>
                                            <td>Type:</td>
                                            <td><asp:DropDownList ID="cb_type" runat="server" Height="20px" Width="170px"></asp:DropDownList></td>
                                            

                                        </tr>
                                        <tr>
                                            <td align="left" class="letraNegra13">Processed:</td>
                                            <td align="left" class="style6" height="18">
                                                <asp:DropDownList ID="cb_completed" runat="server" Height="20px" Width="170px">
                                                    <asp:ListItem>All</asp:ListItem>
                                                    <asp:ListItem>No</asp:ListItem>
                                                    <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>Pics:</td>
                                            <td class="style4"><asp:DropDownList ID="cb_pics" runat="server" Height="20px" Width="170px" 
                                                    onselectedindexchanged="cb_pics_SelectedIndexChanged">
                                                <asp:ListItem>All</asp:ListItem>
                                                <asp:ListItem>No</asp:ListItem>
                                                <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList></td>
                                            <td align="left" class="letraNegra13">Submitted:</td>
                                            <td align="left" class="letraNegra13" height="18">
                                                <asp:DropDownList ID="cb_sumitted" runat="server" Height="20px" Width="170px">
                                                    <asp:ListItem>All</asp:ListItem>
                                                    <asp:ListItem>No</asp:ListItem>
                                                    <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>QC Check:</td>
                                            <td class="style7">
                                                <asp:DropDownList ID="cb_qcdone" runat="server" Height="20px" Width="170px">
                                                    <asp:ListItem>All</asp:ListItem>
                                                    <asp:ListItem>No</asp:ListItem>

                                                    <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>Failed:</td>
                                            <td class="style4">
                                                <asp:DropDownList ID="cb_failed" runat="server" Height="20px" Width="170px">
                                                    <asp:ListItem>All</asp:ListItem>
                                                    <asp:ListItem>No</asp:ListItem>
                                                    <asp:ListItem>Yes</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left" class="letraNegra13">&nbsp;</td>
                                            <td align="left" class="letraNegra13" height="18">&nbsp;</td>
                                            
                                        </tr>
                                        <tr>
                                            
                                            <td>Processor:</td>
                                            <td class="style7">
                                                <asp:DropDownList ID="cb_processor" runat="server" Height="20px" Width="170px">
                                                </asp:DropDownList>
                                            </td>
                                            <td>Driver:</td>
                                            <td class="style4">
                                                <asp:DropDownList ID="cb_driver" runat="server" Height="20px" Width="170px">
                                                </asp:DropDownList>
                                            </td>
                                            <td>QC Agent:</td>
                                            <td>
                                                <asp:DropDownList ID="cb_qc" runat="server" Height="20px" Width="170px">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="right">
                                                <asp:LinkButton ID="lnk_searchfil" runat="server" CssClass="button2_ok" 
                                                    ForeColor="White" onclick="lnk_searchfil_Click"><span>Search</span></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                        </asp:Panel>
                    </td>
    </tr>
    <!-- Pie -->
     <tr>
        <td>&nbsp;</td>
    </tr>
    <%} %>
    <% if ((RSearch & 2) != 2){%>
    <tr>
        <td class="style14" bgcolor="#9AC9F8" colspan="7">&nbsp;Logistics Search</td>
    </tr>
     <tr>
        <td>
            <asp:Panel ID="PlogisticSearch" runat="server">
                <table border="0" cellpadding="0" cellspacing="4" width="100%">
                    
                    <tr>
                        <td class="style12">
                            Company:&nbsp;&nbsp;&nbsp;
                        </td>
                        <td class="style7">
                            <asp:DropDownList ID="cb_companylog" runat="server" Height="20px" Width="170px">
                            </asp:DropDownList>
                        </td>
                        <td class="style8">
                            Sector:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td class="style4">
                            <asp:DropDownList ID="cb_sectorlog" runat="server" AutoPostBack="True" 
                                Height="20px" onselectedindexchanged="cb_sectorlog_SelectedIndexChanged" 
                                Width="170px">
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                            County:</td>
                        <td align="left" class="letraNegra13" height="18">
                            <asp:DropDownList ID="cb_countylog" runat="server" Height="20px" Width="170px" 
                                Enabled="False">
                            </asp:DropDownList>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left" class="style13">
                            Client:</td>
                        <td align="left" class="style7" height="18">
                            <asp:DropDownList ID="cb_clientlog" runat="server" Height="20px" Width="170px">
                            </asp:DropDownList>
                        </td>
                        <td class="style8">
                            Submitted:</td>
                        <td class="style4">
                            <asp:DropDownList ID="cb_sumittedlog" runat="server" Height="20px" 
                                Width="170px">
                                <asp:ListItem>All</asp:ListItem>
                                <asp:ListItem>No</asp:ListItem>
                                <asp:ListItem>Yes</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                            Pics:</td>
                        <td align="left" class="letraNegra13" height="18">
                            <asp:DropDownList ID="cb_picslog" runat="server" Height="20px" 
                                onselectedindexchanged="cb_pics_SelectedIndexChanged" Width="170px">
                                <asp:ListItem>All</asp:ListItem>
                                <asp:ListItem>No</asp:ListItem>
                                <asp:ListItem>Yes</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:LinkButton ID="lnk_logisticAssign" runat="server" CssClass="button2_ok" 
                                ForeColor="White" onclick="lnk_logisticAssign_Click"><span>Assign</span></asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="style12">
                            Driver:</td>
                        <td class="style7">
                            <asp:DropDownList ID="cb_driverlog" runat="server" Height="20px" Width="170px">
                            </asp:DropDownList>
                        </td>
                        <td class="style8">
                            Report Type</td>
                        <td class="style4">
                            <asp:DropDownList ID="cb_reporttypelog" runat="server" Height="20px" 
                                Width="170px">
                                <asp:ListItem>All</asp:ListItem>
                                <asp:ListItem>Exterior</asp:ListItem>
                                <asp:ListItem>Interior</asp:ListItem>
                            </asp:DropDownList>
                            </td>
                        <td class="style11">
                            App Date</td>
                        <td>
                            <asp:TextBox ID="txtdateint0" runat="server" Width="164px"></asp:TextBox>
                            <cc1:CalendarExtender ID="txtdateint0_CalendarExtender" runat="server" 
                                Format="MM/dd/yyyy" TargetControlID="txtdateint0">
                            </cc1:CalendarExtender>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="lnk_logisticsearh" runat="server" CssClass="button2_ok" 
                                                    ForeColor="White" onclick="lnk_logisticsearh_Click"><span>Search</span></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
         </td>
    </tr>
     <tr>
        <td>&nbsp;</td>
    </tr>
    <%} %>
    
    </table>

</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style2
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 215px;
        }
        .style4
        {
            width: 215px;
        }
        .style6
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 243px;
        }
        .style7
        {
            width: 243px;
        }
        .style8
        {
            width: 72px;
        }
        .style11
        {
            width: 73px;
        }
        .style12
        {
        }
        .style13
        {
            color: Black;
            font-family: Arial Narrow;
            font-size: 13px;
            text-decoration: none;
            width: 78px;
        }
        .style14
        {
            font-family: Arial Narrow;
            font-weight: normal;
            height: 28px;
            font-size: 24px;
            color: #FFFFFF;
            vertical-align: middle;
            text-align: left;
        }
    </style>
</asp:Content>

